: This article mainly introduces two methods for sending mails by php using smtp. For more information about php tutorials, see. Original article: http://www.jbxue.com/php/25502.html
This article introduces two methods for sending mails in php:
Original: http://www.jbxue.com/php/25502.html
This article introduces two methods of sending mail in PHP, using the PHP built-in mail () function to send mail, sending mail using the message class encapsulating the SMTP protocol, and recommending
PHP implements the mail sending instance code based on the SMTP protocol and smtp mail sending
SMTP protocol
When we use a third-party library or tool class of PHP to send emails, do you have any questions:
Why can't we use someone else's library
This article mainly introduced the PHP implementation to support SSL connection SMTP mail send class, the example analyzes the PHP implementation SMTP mail sends the class the principle and the technique, as well as the support SSL connection method,
This content reproduced source: http://my.oschina.net/BearCatYN/blog/299192, and made a change.thinkphp no mail send function, so, I think about, will phpmailer integration into thinkphp it.Phpmailer is not in line with the thinkphp specification
thinkphp no mail send function, so, I think about, will phpmailer integration into thinkphp it. Phpmailer is not in line with the thinkphp specification plug-in program, so we need to first put Phpmailer program into thinkphp Library/vendor
Use a Socket to send an email (using the SMTP server to be verified ).? * Name: use Socket to send emails * Description: This class enables direct sending of emails using the SMTP server to be verified. See the article "sending emails with Socket":
Sending mail via socket means sending the above commands to the mail server through the client, so as to realize the SMTP protocol to send mail. PHP uses the socket method to send the mail code as follows :/***
Sending mail via socket means sending
1. Use the Mail () function
Nothing to say, is to use the system's own SMTP system to send, is generally used sendmail to hair. This varies according to each system. Use the reference manual.
2. Use the form of piping
The test was successful
Use Socket to send emails (using the SMTP server to be verified)
* Name: use Socket to send an email* Description: This class allows you to directly send emails using the SMTP server to be verified. for details, see limodou, author of "sending
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.